Hello all, I have got a module whereas I import my requirements from a tsv file. All the requirements are imported as object text. Then by filtering them I switch the ones that should be object heading. The headache comes next, because all the objects heading and objects text are in the same level. I want to demote the objects text one level. The problem is that I have hundreds of headings and with each heading having tens of objects text, so doing it by hand would take hours. Filtering and demoting will not help, I searched and it is not allowed by DOORS. I thought of doing some kind of clever importing but I haven't find anything that could give me a hint how to do it. Also, I cannot run a custom DXL script in "Tools->Edit DXL.." , the Run is deactivated. And I thought of clever selecting all but "find" does not seem to have this kind of option. I would really appreciate your help, thank you very much in advance, Tasos TasosM - Tue Oct 06 03:07:59 EDT 2015 |
Re: Demoting multiple objects text Smartdxl at http://www.smartdxl.com/content/?cat=27 has a script that will structure your Module; |
Re: Demoting multiple objects text Thanks DOORSHAM, Unfortunately I cannot use any dxl. I append here a simpler version I created for this script, for anone that is looking a solution with dxl
Module m = current
Object o = null
Object oParent = null
string oot = ""
int reqtCount = 0
int ObjCount = 0
filtering off
for o in m do {
oot = o."Object Type"
ObjCount ++
if (oot == /*"Type Identifier of heading"*/) then
{
oParent = o
}
if (oot == /*"Type to be demoted"*/) then
{
move(o, last below oParent)
reqtCount ++
}
}
infoBox "Demoted " reqtCount " in this Module" " out of " ObjCount " Objects"
|